<?php 
include_once 'kelas/amankanParam.php';
include_once 'kelas/fungsi.php';
include_once 'kelas/record.php';
include_once 'kelas/customer.php';
$dtGet= $objParamAman->getMethod();
$dtPost = $objParamAman->postMethod();
echo $objFungsi->buatJudul('Ganti Password');
?>
<form name="formChPass" method="POST" action="<?php BASEURL ?>proses/pelanggan.php?on=chpass">
	<table>
		<tr><td>Username</td><td><input class="text_box_3" required="required" disabled="disabled" value="<?php echo $_SESSION['userlogin']['username'] ?>"></td></tr>
		<tr><td>Password Lama</td><td><input class="text_box_3" required="required"  name="oldPass" value=""></td></tr>
		<tr><td>Password Baru</td><td><input type="password"  class="text_box_3" required="required" name="password" value=""></td></tr>
		<tr><td>Ulangi Password</td><td><input type="password" class="text_box_3" required="required" name="repass" value=""></td></tr>
		<tr><td colspan="2"><input   type="submit" value="Ubah Password"><input type="reset" value="Reset"></td></tr>
	</table>
</form>
<script type="text/javascript">
$(document).ready(function(){
	var formChPass = $(document).find('form[name="formChPass"]');
	formChPass.submit(function(e){
		var pass  = formChPass.find('input[name="password"]').val();
		var repass  = formChPass.find('input[name="repass"]').val();
		if(pass==repass){

		}
		else{
			alert('Ulangi Password Tidak Sama');
			e.preventDefault();	
		};

	}
	);
});
</script>